import tkinter as tk
from tkinter import ttk


def main():
    root = tk.Tk()
    root.title("面板示例")

    # 创建标签1和下拉式选择框1
    label1 = ttk.Label(root, text="标签1:")
    combo1 = ttk.Combobox(root, values=['选项1', '选项2', '选项3'])

    # 创建标签2和输入框2
    label2 = ttk.Label(root, text="标签2:")
    entry2 = ttk.Entry(root, width=30)

    # 使用Grid布局
    label1.grid(row=0, column=0, padx=10, pady=10, sticky=tk.W)
    combo1.grid(row=0, column=1, padx=10, pady=10, sticky=tk.W)
    label2.grid(row=1, column=0, padx=10, pady=10, sticky=tk.W)
    entry2.grid(row=1, column=1, padx=10, pady=10, sticky=tk.W)

    root.mainloop()


if __name__ == "__main__":
    main()
